﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="Stuff.aspx.cs" Inherits="School.Pages.Organization.Stuff" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        فريق العمل</h1>
    <table width="100%">
        <tr>
            <td style="width: 149px">
                المجمع
            </td>
            <td>
                <asp:DropDownList ID="ddCamp" runat="server" AppendDataBoundItems="True" DataTextField="Name"
                    DataValueField="Id" Width="150px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddCamp"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="-1" ValidationGroup="s">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                الاسم الأول
            </td>
            <td>
                <asp:TextBox ID="TxtFName" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TxtFName"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                الاسم الثانى
            </td>
            <td>
                <asp:TextBox ID="TxtMName" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TxtMName"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                الاسم الثالث
            </td>
            <td>
                <asp:TextBox ID="TxtLName" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="TxtLName"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                المدير المباشر
            </td>
            <td>
                <asp:DropDownList ID="LstManagers" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                الوظيفة
            </td>
            <td>
                <asp:DropDownList ID="LstRoles" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                القسم
            </td>
            <td>
                <asp:DropDownList ID="LstDepartments" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                اسم المستخدم
            </td>
            <td>
                <asp:TextBox ID="TxtUsername" runat="server" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TxtUsername"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                كلمة المرور
            </td>
            <td>
                <asp:TextBox ID="txtpass" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtpass"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                تأكيد كلمة المرور
            </td>
            <td>
                <asp:TextBox ID="txtpassconf" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtpass"
                    ControlToValidate="txtpassconf" Display="Dynamic" ErrorMessage="تأكد من تطابق كلمة المرور"
                    ForeColor="Red" ValidationGroup="s"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtpassconf"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                حالة العضوية
            </td>
            <td>
                <asp:RadioButtonList ID="RIsActive" runat="server">
                    <asp:ListItem Value="true" Selected="True">فعالة</asp:ListItem>
                    <asp:ListItem Value="false">معلقة</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                تاريخ الإلتحاق بالعمل
            </td>
            <td>
                <asp:TextBox ID="TxtJoinDate" runat="server" Width="150px"></asp:TextBox>
                <asp:CalendarExtender ID="TxtJoinDate_CalendarExtender" runat="server" Enabled="True"
                    TargetControlID="TxtJoinDate">
                </asp:CalendarExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="TxtJoinDate"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                تاريخ ترك العمل
            </td>
            <td>
                <asp:TextBox ID="TxtleaveDate" runat="server" Width="150px"></asp:TextBox>
                <asp:CalendarExtender ID="TxtleaveDate_CalendarExtender" runat="server" Enabled="True"
                    TargetControlID="TxtleaveDate">
                </asp:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                رقم التليفون
            </td>
            <td>
                <asp:TextBox ID="TxtPhone" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                العنوان
            </td>
            <td>
                <asp:TextBox ID="TxtAddress" runat="server" TextMode="MultiLine" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                مدرس
            </td>
            <td align="right" nowrap="nowrap">
                <asp:RadioButtonList ID="rdbteacher" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">نعم</asp:ListItem>
                    <asp:ListItem Value="1">لا</asp:ListItem>
                </asp:RadioButtonList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="*"
                    ControlToValidate="rdbteacher" ForeColor="Red" ValidationGroup="s"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right" nowrap="nowrap">
                <asp:Button ID="Button1" runat="server" Text="حفظ" OnClick="Button1_Click" CssClass="graybutton"
                    ValidationGroup="s" />

                <asp:Label ID="lbltst" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
        CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
        PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
        <Columns>
            <asp:BoundField DataField="Name" HeaderText="الأسم" />
            <asp:BoundField DataField="SDepartment" HeaderText="القسم" />
            <asp:BoundField DataField="SRole" HeaderText="الوظيفة" />
            <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="Stuff.aspx?Id={0}"
                Text="تعديل" />
        </Columns>
    </asp:GridView>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
</asp:Content>
